﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using SmartIMS.Core.Entities;

namespace SmartIMS.Mvc.Entities
{

    public class ListtypeFilter : BaseFilter
    {
        public string ListtypeId { get; set; }        

        public string NameFilter { get; set; }      

        public List<Listtype> List { get; set; }

        public Listtype Detail { get; set; }

    }


    public class Listtype
    {
        public string ListtypeId { get; set; }

        [Required(ErrorMessage = "khong duoc de trong")]
        public string Code  { get; set; }

        [Required(ErrorMessage = "khong duoc de trong")]
        public string Name { get; set; }

        [Required(ErrorMessage = "khong duoc de trong")]
        public string Group { get; set; }

        [Required(ErrorMessage = "khong duoc de trong")]
        public string Note { get; set; }

        [Required(ErrorMessage = "khong duoc de trong")]
        public string Directory { get; set; }

        [Required(ErrorMessage = "khong duoc de trong")]
        public int Order { get; set; }

        [Required(ErrorMessage = "khong duoc de trong")]
        public bool Status { get; set; }

    }
}
